﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Character_Creation.The_Catalog
{
    class TheCatalog
    {

        public Dictionary<string, Races> racesD;
        public Dictionary<string, Classes> classesD;
        public Dictionary<string, Spells> spellsD;
        public Dictionary<string, Feats> featsD;

        public TheCatalog(int racesCount, int classesCount, int spellCount, int featCount)
        {
            racesD = new Dictionary<string, Races>(racesCount);
            classesD = new Dictionary<string, Classes>(classesCount);
            spellsD = new Dictionary<string, Spells>(spellCount);
            featsD = new Dictionary<string, Feats>(featCount);
        }

        public void addNewRace(string rName)
        {
            racesD[rName] = new Races();
        }

        public void addNewClass(string cName)
        {
            classesD[cName] = new Classes();
        }

        public void addNewSpell(string sName)
        {
            spellsD[sName] = new Spells();
        }

        public void addNewFeat(string fName)
        {
            featsD[fName] = new Feats();
        }

    }
}
